package com.qlzb.taskmanagement.vo.quartzVo;


import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

public class Constants {
    public final static Map<String,WarnType> warnType=new HashMap<>();
    public final static String NULL_DATA = "没有数据";
    public final static SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    public final static SimpleDateFormat DF = new SimpleDateFormat("yyyy-MM-dd HH:mm");
    public final static SimpleDateFormat DFT = new SimpleDateFormat("MM/yyyy");
    //最大重试次数
    public final static int  maxTryTime=5;
    //如果操作多少次 无法获取， 尝试重新登录
    public final static int  maxTryTimeReLogin=3;
    //单次请求数
    public final static int  pageSizeText=200;
    public static   void  init() {
         WarnType POWER_CUT = new WarnType("交流输入停电","warning_type_power_cut");
         WarnType LOWER_POWER_WARINING =new WarnType("一级低压脱离告警","warning_type_one_level_lower");
         WarnType TOTAL_POWER_LOWER = new WarnType("总电压过低","warning_type_total_lower");
         WarnType OUT_POWER_LOWER = new WarnType("直流输出电压过低","warning_type_dc_lower");
         WarnType BATTERY_WARNING = new WarnType("电池供电告警","warning_type_battery_lower");
         WarnType SECOND_LOWER_POWER = new WarnType("二级低压脱离","warning_type_second_level_lower");
         WarnType FSUNotOnline = new WarnType("FSU离线","warning_type_fsu_online");
         WarnType mencistatus = new WarnType("门磁开关状态","warning_type_discharge_protect");
         WarnType warningTypeDischargeProtect = new WarnType("放电过流保护","warning_type_discharge_protect");
         WarnType warningTypeZyqy = new WarnType("总压欠压告警","warning_type_zyqy");
         WarnType warningTypeFzrs = new WarnType("负载熔丝故障告警","warning_type_fzrs");
         warnType.put("POWER_CUT",POWER_CUT);
         warnType.put("LOWER_POWER_WARINING",LOWER_POWER_WARINING);
         warnType.put("TOTAL_POWER_LOWER",TOTAL_POWER_LOWER);
         warnType.put("OUT_POWER_LOWER",OUT_POWER_LOWER);
         warnType.put("BATTERY_WARNING",BATTERY_WARNING);
         warnType.put("SECOND_LOWER_POWER",SECOND_LOWER_POWER);
         warnType.put("FSUNotOnline",FSUNotOnline);
         warnType.put("warningTypeDischargeProtect",warningTypeDischargeProtect);
         warnType.put("warningTypeZyqy",warningTypeZyqy);
         warnType.put("warningTypeFzrs",warningTypeFzrs);


    }
}
